<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="../../include/tag.jsp" %>
<!DOCTYPE html>
<html lang="zh">
<head>
    <title>第三方应用版本管理</title>
    <link rel="stylesheet" href="${ctx}/css/common/list.css">
    <link rel="stylesheet" href="${ctx}/css/common/table.css">
    <%@include file="../../include/commonFile.jsp" %>
</head>
<body>
<!--头部-->
<%@include file="../../include/header.jsp" %>
<div class="index-outside">
    <%@include file="../../include/sidebar.jsp" %>
    <!--内容-->
    <section>
        <div class="section-main">
            <div class="list-content">
                <div class="cl">
                    <table class="layui-table">
                        <colgroup>
                            <col>
                            <col>
                            <col>
                            <col>
                            <col>
                            <col>
                        </colgroup>
                        <thead>
                        <tr>
                            <th>第三方应用类型</th>
                            <th>版本号</th>
                            <th>是否开启</th>
                            <th>更新时间</th>
                            <th>描述</th>
                            <th>操作</th>
                        </tr>
                        </thead>
                        <tbody>
                        <c:forEach var="version" items="${list}">
                            <tr>
                                <td class="">
                                    ${version.type}
                                </td>
                                <td>
                                    ${version.versionNumber}
                                </td>
                                <td>
                                    ${version.isOpen == 1 ? '开启' : '关闭'}
                                </td>
                                <td>
                                    <fmt:formatDate value="${version.updateDate}" pattern="yyyy-MM-dd HH:mm"/>
                                </td>
                                <td class="ellipsis-1">
                                    ${version.remarks}
                                </td>
                                <td class="tb-opts">
                                    <div class="comm-opts">
                                        <a href="${ctx}/system/versionMgr/view.do?id=${version.id}" target="_self">
                                            编辑
                                        </a>
                                        <a href="javascript:txz.deleteObject('确定删除？', '${ctx}/system/versionMgr/delete.do?id=${version.id}');"
                                           target="_self">
                                            删除
                                        </a>
                                    </div>
                                </td>
                            </tr>
                        </c:forEach>
                        </tbody>
                    </table>
                </div>
            </div>
            <div id="page_content" class="page-container"></div>
        </div><!--底部-->
        <%@include file="../../include/footer.jsp" %>
    </section>
</div>


<script type="text/javascript" src="${ctx}/script/common/list.js"></script>
<script type="text/javascript" src="${ctx}/script/common/table_option.js"></script>
<script type="text/javascript">

    $(function () {
        //加载分页
        loadPageNew({
            elem: 'page_content',
            totalCount: '${page.totalCount}',
            limit: '${page.limit}',
            page: '${page.page}'
        });
    })
</script>
<script type="text/javascript">
    txz.initHeader({
        nav: [{
            name: '第三方应用版本管理',
            curr: true
        }],
        info: '<span class="f12">共<b id="totalCount">${page.totalCount}</b>条记录</span>',
        btns: [{
            name: '添加第三方应用',
            href: '${ctx}/system/versionMgr/view.do',
            icon: 'add'
        }]
    });
</script>
</body>
</html>